package com.mccrea.pattern.strategy;

/**
 * @Classname Client
 * @Description 策略模式测试
 * @Date 2021/5/24 0024 15:39
 * @Created by Mccrea_Gao
 */
public class Client {
    public static void main(String[] args) {
        Kitchen kitchen = new Kitchen();
        kitchen.setCrabCooking(new SteamedCrabs());
        kitchen.cookingMethod();
        kitchen.setCrabCooking(new BraiseCrabs());
        kitchen.cookingMethod();
    }
}
